﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zielonka.co.uk.extensions.system
{
    /*
        DateTime dtStart = DateTime.Now;
        // Do something
        Double elapsed = dtStart.ElapsedSeconds();
     */

    public static partial class DateTimeExtensions
    {        
        public static Double ElapsedSeconds(this DateTime input)
        {
            return DateTime.Now.Subtract(input).TotalSeconds;
        }
    }
}
